@echo off

set /a loopcount=%1%
set /a workerid=0

:loop

start java -cp  C:\Users\Ben\google_code\pcsd_assignment2\src\;C:\Users\Ben\google_code\pcsd_assignment2\src\pcsd\worker.jar ^
     -Djava.rmi.server.codebase=file:/C:/Users/Ben/google_code/pcsd_assignment2/src/pcsd/worker.jar ^
     -Djava.rmi.server.hostname=localhost ^
     -Djava.security.policy=server.policy ^
   pcsd.worker.SimpleJobProcessingWorker %workerid%

set/a workerid+=1
set/a loopcount-=1

if %loopcount% GTR 0 goto :loop